Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: RestoreOnDeactivate setting retention #109

Merged

Conversation

hugobloem
Copy link
Owner

This pull request fixes an issue where the RestoreOnDeactivate setting was not retained after a reboot. The RestoreOnDeactivate class now inherits from RestoreEntity to ensure that the setting is properly restored. Additionally, the async_added_to_hass method has been implemented to handle the entity being added and set the restore state based on the last known state.

@hugobloem
Copy link
Owner Author

Full credits go to @Cheerpipe

Copy link
Owner Author

@hugobloem hugobloem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes #99

@hugobloem hugobloem merged commit 0d40246 into main Aug 27, 2024
5 checks passed
@hugobloem hugobloem deleted the 99-restore-on-deactivate-does-not-persist-after-restart branch August 27, 2024 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant